Method: flask.cli.with_appcontext.<locals>.decorator
Calls: 26, Exceptions: 0, Paths: 2Back
Path 1: 25 calls (0.96)
Context (25)
() (25)
{} (14) {'sort': 'endpoint', 'all_methods': False} (7) {'sort': 'methods', 'all_methods': False} (1) {'sort': 'rule', 'all_methods': False} (1) {'sort...
None (25)
1@click.pass_context
2 def decorator(__ctx, *args, **kwargs):
3 if not current_app:
4 app = __ctx.ensure_object(ScriptInfo).load_app()
5 __ctx.with_resource(app.app_context())
6
7 return __ctx.invoke(f, *args, **kwargs)
Path 2: 1 calls (0.04)
Context (1)
() (1)
{'value': True} (1)
(True, True) (1)
1@click.pass_context
2 def decorator(__ctx, *args, **kwargs):
3 if not current_app:
4 app = __ctx.ensure_object(ScriptInfo).load_app()
5 __ctx.with_resource(app.app_context())
6
7 return __ctx.invoke(f, *args, **kwargs)